<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        html{
            filter: grayscale(100%);
            filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
        }
    </style>
</head>
<body>
    <div style="width: 200px; height: 400px; background-color: red;">红色</div>
</body>
</html>